﻿#ifndef IMAGEITEM_H
#define IMAGEITEM_H

/************************************************************************
  * @auther         :
  * @date           : 2021-4
  * @description    : 通过鼠标点选获取当前灰度值
************************************************************************/
#include <QGraphicsPixmapItem>

class ImageItem :public QObject, public QGraphicsPixmapItem
{
    Q_OBJECT
public:
    explicit ImageItem(QWidget *parent = nullptr);

protected:
    virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event);


signals:
    void RGBValue(QString InfoVal);


};

#endif // IMAGEITEM_H

